<!DOCTYPE>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<style type="text/css">
	p{
		color:red;
	}
	.content {
	    width: 800px;
	    height: 40px;
	    background: #e7f3f3;
	    line-height: 40px;
	    text-align: center;
	}
    .one{
    	width:800px;
    	height:510px;
    	background:#E0E0E0;
    	position:absolute;
    	left:120px;
    }
</style>
</head>
<body>
		<div class="one">
			<div class="content">
				<h2>任务信息</h2>
			</div>
			<div align="center">
				<p align="center">[[${err}]]</p>
				<th:if test="${empty err }"> <!-- 当err为空的时候，即list集合中有信息时执行 -->
					<table border="1" cellspacing="0" cellpadding="15">
						<tr>
							<th>序号</th>
							<th>任务名称</th>
							<th>指定人</th>
							<th>开始时间</th>
							<th>结束时间</th>
							<th>任务状态</th>
							<th>选定</th>
							<th>计划</th>
						</tr>
						<tr th:each="t,iterStat:${tasks}">
							<td th:text="${iterStat.count}"></td>
							<td><a th:href="@{/staff/detailTask}">[[${t.task_name}]]</a></td>
							<td th:text="${name}"></td>
							<td th:text="${t.task_begin_time}"></td>
							<td th:text="${t.task_end_time}"></td>
							<td th:text="${t.task_state}"></td>
				    		<td><a th:href="@{/staff/makePlan(id=${t.id},flag=1)}">制定计划</a></td>
							<td><a th:href="@{/staff/planOfTask(task_id=${t.id})}">√</a></td>
		 				</tr>
					</table>
				</th:if>
			</div>
	</div>
</body>
</html>
